package com.unittec.zk.sdk.exam.request;

import com.unittec.zk.sdk.exam.domain.QuAnswerDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * 试题-增/改 请求实体
 *
 * @author wangyongfeng
 * @date 2021/12/7
 */
@ApiModel("试题-增/改 请求实体")
@Data
public class Req201008 implements Serializable {

    private static final long serialVersionUID = 4151385613262128079L;

    @ApiModelProperty(value = "备选项列表", required=true)
    @NotNull(message = "备选项不能为空")
    private List<QuAnswerDTO> answerList;

    @ApiModelProperty(value = "题库列表", required=true)
    @NotNull(message = "请选择归属题库")
    private List<String> repoIds;

    @ApiModelProperty(value = "题目ID")
    private String id;

    @ApiModelProperty(value = "题目类型", required=true)
    @Min(value = 1,message = "请选择题目类型")
    private Integer quType;

    @ApiModelProperty(value = "1普通,2较难", required=true)
    @Min(value = 1,message = "请选择难度等级")
    private Integer level;

    @ApiModelProperty(value = "题目图片", required=true)
    private String image;

    @ApiModelProperty(value = "题目内容", required=true)
    @NotBlank(message = "请输入题目内容")
    @Size(max=2000,message = "题目内容不超过2000个字符")
    private String content;

    @ApiModelProperty(value = "整题解析")
    private String analysis;

}